#!/bin/bash -e

rm -rf ./dl-assets/
mkdir -p ./dl-assets/
wget -O "./dl-assets/Human Resource Machine (HOC) 1.0.34606.msi" "https://downloads.tomorrowcorporation.com/HOC/Human%20Resource%20Machine%20(HOC)%201.0.34606.msi"
pushd dl-assets/
WINEPREFIX="$PWD" wine msiexec /i "Human Resource Machine (HOC) 1.0.34606.msi" /qb
7z a files.7z drive_c dosdevices
popd
dpkg-buildpackage -us -uc
lintian ../human-resource-machine-hoc_1.0.34606~spark3_amd64.deb
